/**
 * 
 */
package org.bankabeule.util;

import org.bankabeule.Date;
import org.bankabeule.Operation;
import org.eclipse.emf.common.notify.Notification;
import org.eclipse.emf.common.notify.impl.AdapterImpl;
import org.eclipse.emf.ecore.EObject;

/**
 * @author sdudoit
 *
 */
public class OperationAdapter extends AdapterImpl {

	
	/**
	 * 
	 */
	public void notifyChanged(Notification notification) {
		if (notification.getNotifier() instanceof Operation) {
			if (notification.getEventType() == Notification.SET) {
				operationChanged((Operation) notification.getNotifier());
			}
		} else if (notification.getNotifier() instanceof Date) {
			if (notification.getEventType() == Notification.SET) {
				EObject container = ((Date) notification.getNotifier()).eContainer();
				if (container instanceof Operation) {
					operationChanged((Operation) container);
				}
			}
		}
		
	}
	
	
	/**
	 * 
	 */
	public void operationChanged(Operation operation) {		
	}
	
	
}
